<template>
  <appTopnavVue />
  <appHeaderVue />
  <appHeaderStickyVue />
  <main>
    <!-- 二级路由 -->
    <router-view></router-view>
  </main>
  <AppFooterVue />
</template>

<script>
import appTopnavVue from '@/components/app-topnav.vue'
import appHeaderVue from '@/components/app-header.vue'
import appHeaderStickyVue from '@/components/app-header-sticky.vue'
import AppFooterVue from '@/components/app-footer'
import { useStore } from 'vuex'
export default {
  name: 'xtx-layout',
  components: { appTopnavVue, appHeaderVue, AppFooterVue, appHeaderStickyVue },
  // 获取分类数据
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }
}
</script>

<style scoped lang="less">
app-body {
  min-height: 600px;
}
</style>
